package com.zjitc.dao;

import com.zjitc.model.Collection;
import com.zjitc.model.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/24 17:07
 * @description:
 */
public interface CollectionDao {

    void collection(@Param("pid") String pid,@Param("uid") String uid, @Param("collectionId") String collectionId);

    void deleteCollection(@Param("pid") String pid,@Param("uid") String uid);

    List<Collection> findAllCollection(String uid);

    Product findByPid(String pid);

  void deleteCollections(String pid);
}
